package com.zsp.comic.dao;

import com.zsp.comic.entity.Friend;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author gan
 * @create 2020-11-30 11:00
 */
@Mapper
public interface FriendDao {

    List<Friend> getAllFriend();

    Friend getFriendById(Integer id);

    List<Friend> getFriendByName(String name);

    List<Friend> getAllFriendWithAdminAuthority();

    Friend getFriendByIdWithAdminAuthority(Integer id);

    List<Friend> getFriendByNameWithAdminAuthority(String name);

    Integer addFriend(Friend friend);

    Integer updateFriend(Friend friend);

    Integer deleteFriend(Integer id);
}
